module.exports = {
  publicPath: process.env.NODE_ENV === 'production' ? '/client' : '/',
  devServer: {
    port: 8080,
    proxy: {
      '/group1': {
        target: 'https://www.vivebo.com/group1',
        changeOrign: true,
      },
      '/vivebo': {
        target: 'https://www.vivebo.com/vivebo',
        changeOrign: true,
      },
    },
  },
  chainWebpack: (config) => {
    config.plugin('html').tap((args) => {
      args[0].title = 'Vivebo';
      return args;
    });
  },
};
